package org.best.queue;

/**
 * 队列测试类
 */
public class QueueTest {
    public static void main(String[] args) {
        Queue<String> stringQueue = new Queue<>(3);
        stringQueue.push("1");
        stringQueue.push("2");
        System.out.println(stringQueue.getAll().toString());
        System.out.println(stringQueue.size());
        stringQueue.pop();
        stringQueue.push("3");
        System.out.println(stringQueue.getIndex());
        System.out.println(stringQueue.getAll().toString());
        System.out.println(stringQueue.size());
        stringQueue.push("4");
        stringQueue.push("5");
        System.out.println(stringQueue.getAll().toString());
        System.out.println(stringQueue.getLast());
        stringQueue.push("5");
    }
}
